class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks do |t|
      t.string :name
      t.datetime :due_date
      t.string :status
      t.decimal :time_spent
      
      t.integer :assigned_by_id #don't know if there is a syntax for doing this with a t.references
      t.references :user
      t.references :project

      t.timestamps
    end
  end

  def self.down
    drop_table :tasks
  end
end
